package com.kaikeba.mvc;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UserServlet {
    //请求地址
    @ResponseBody("/e/login.do")
    public String login(HttpServletRequest req,HttpServletResponse resp){
        //返回信息
        resp.setContentType("text/html;charset=utf-8");
        return "登录成功";
    }

    @ResponseView("/e/main.jsp.do")
    public String toMain(HttpServletRequest req,HttpServletResponse resp){
        return "/main.jsp";
    }
}
